package lec07.am;

public class Balance {
	void withdraw(float amount) {

	}

	public static void main(String[] args) {
		Stack st = new Stack();
		st.push(new Balance());
		Object o = st.getPeek();
		if (o instanceof Balance) {
			Balance cur = (Balance) o;
			cur.withdraw(100);
		}
		java.util.Stack<Balance> st2 = new java.util.Stack<Balance>();
		st2.peek().withdraw(1000.0f);
		Stack<Balance> st3=new Stack<Balance>();
		st3.push(new Balance());
		st3.getPeek().withdraw(2000.0f);
	}
}
